package test03;

import java.util.Scanner;

public class Lawguo {
	public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int num =sc.nextInt();
        boolean bool=(num!=0);
        int result;
        //result = bool;
        if(bool){
           result=1;
        }else{
           result=0;
        }
        System.out.println(result);
    }
}
